package com.mlethe.android.demo.seattable.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class AreaInfo implements Parcelable {
    /**
     * areaId : 1
     * areaPrice : 10.01
     * areaServiceFee : 10.00
     */

    private String areaId;
    private double areaPrice;
    private double areaServiceFee;

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public double getAreaPrice() {
        return areaPrice;
    }

    public void setAreaPrice(double areaPrice) {
        this.areaPrice = areaPrice;
    }

    public double getAreaServiceFee() {
        return areaServiceFee;
    }

    public void setAreaServiceFee(double areaServiceFee) {
        this.areaServiceFee = areaServiceFee;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.areaId);
        dest.writeDouble(this.areaPrice);
        dest.writeDouble(this.areaServiceFee);
    }

    public AreaInfo() {
    }

    protected AreaInfo(Parcel in) {
        this.areaId = in.readString();
        this.areaPrice = in.readDouble();
        this.areaServiceFee = in.readDouble();
    }

    public static final Creator<AreaInfo> CREATOR = new Creator<AreaInfo>() {
        @Override
        public AreaInfo createFromParcel(Parcel source) {
            return new AreaInfo(source);
        }

        @Override
        public AreaInfo[] newArray(int size) {
            return new AreaInfo[size];
        }
    };
}
